package com.nondo.rdp.finance.service;

import com.nondo.rdp.auth.domain.User;
import com.nondo.rdp.auth.endpoint.model.Page;
import com.nondo.rdp.finance.domain.UserFollow;

public interface UserFollowService {
    /**
     * 保存活动
     *
     * @param userFollow
     */
    UserFollow save(UserFollow userFollow);

    /**
     * 根据主键ID删除活动
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 分页查询活动列表
     *
     * @param page
     * @param userFollow
     * @return
     */
    Page<UserFollow> findAll(Page<UserFollow> page, UserFollow userFollow);

    /**
     * 查找
     *
     * @param follower
     * @param user
     * @return
     */
    public UserFollow findByFollowerAndUser(User follower, User user);
}
